
// Global default params, used in configs
params {
  outdir = './nextflow_output'
  clusterOptions = false
}

profiles {

  standard {
    includeConfig 'conf/base.config'
    includeConfig 'conf/images.config'
  }
  k8s {
    includeConfig 'conf/base.config'
    includeConfig 'conf/images.config'
    includeConfig 'conf/k8s.config'
  }
  singularity {
    includeConfig 'conf/base.config'
    includeConfig 'conf/lsf.config'
    includeConfig 'conf/images.config'
    includeConfig 'conf/singularity.config'
  }
}

// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']

timeline {
  enabled = true
  file = "${params.outdir}/timeline.html"
}
trace {
  enabled = true
  file = "${params.outdir}/trace.txt"
}
